package com.stx.liupengWorks;

/**
 * packageName com.stx.day0917
 *
 * @author YangYi
 * @className Pig
 * @date 2025/9/17
 * @description TODO
 */
public class Pig {
    //编号
    private int num;
    // 体重
    private double weigth;
    // 姓名
    private String name;
    // 年龄
    private double age;
    // 健康状态
    private boolean health;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getWeigth() {
        return weigth;
    }

    public void setWeigth(double weigth) {
        this.weigth = weigth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public boolean isHealth() {
        return health;
    }

    public void setHealth(boolean health) {
        this.health = health;
    }
}
